<?php
class PTGenreControl extends CI_Controller
{
	function __construct() 
	{	
		parent::__construct();
		$this->load->model('PTgenreModel');
	} 
	
	function index()
	{
	
	}
	
	function editPTgenre()
	{
		if ($this->input->post('submit')) {
			
			$this->load->model('PTgenreModel');
			$this->PTgenreModel->add_PTGenre($GENREID, $GENDERFANS, $SKOROPEN, $SKORCONSCIENT, $SKOREXTRA, $SKORNEURO, $SKORAGREE);
			redirect('PTGenreControl/editPTgenre');
		}
		$this->load->view('EditPTGenrepage');
	}
	
	function show()
	{
		$this->load->view('DaftarPTGenrePage');
	}

}